#pragma once
#ifndef SNAPSHOT__GUI__INCLUDED__HH__
#define SNAPSHOT__GUI__INCLUDED__HH__

#include "ui_gui.h"
#include <qmessagebox.h>
#include "SnapshotProject.h"
#include <qprogressbar.h>

class SnapshotGui : public QMainWindow
{
	Q_OBJECT
protected:
	Ui::Snapshot ui;
	SnapshotProjectPtr mSdk;
	QTreeWidgetItem * mHome;
	QProgressBar * mBar;
public:
	SnapshotGui( QWidget * w = NULL );
	~SnapshotGui();
	
	QProgressBar * getProgressBar(){ return mBar; }
	const QProgressBar * getProgressBar() const{ return mBar; }
	QTreeWidgetItem* createNode( const StringVector& labels, QTreeWidgetItem * parent = NULL );

	void setupUi();
	void refreshSdk( const String &proj_ext = "vcxproj" );

	SnapshotProjectPtr& getSdk(){ return mSdk; }
	const SnapshotProjectPtr& getSdk() const{ return mSdk; }
protected slots:
	void on_actionUsage_triggered();
	void on_buildSnapshot_clicked();
};
#endif